Arrays.sort() vs Collections.sort()


Posted by Rich on 2022-08-10

差別是:

  1. Collections 是給 List 用的,Arrays 是給 array 用的。
  2. Collections 用 binary sort, Arrays 用 merge sort

連結










Related Posts

PDIS 實習日誌:走入就業服務中心

PDIS 實習日誌:走入就業服務中心

Week3:hw1 好多星星

Week3:hw1 好多星星

資訊安全概念

資訊安全概念


Comments